import {request} from '@/utils/request.js';

const state = {
	arr:[]
}

const mutations = {
	GETCATEGORYDATA(state,arr){
		state.arr = arr
	}
}

	
const actions = {
	async getCategoryData({commit,dispatch,state,getter},payload){
		let result = await request("/getCateGoryData");
		commit('GETCATEGORYDATA',result)
	}
}
	
const getters = {
	
}
export default {
	state,
	mutations,
	actions,
	getters
}